﻿{% extends 'wap/base.html' %}
{% load humanize %}

{% block title %}
{{category.name}}
{% endblock %}

{% block content %}
{% for archive in category.query_news %}
<div class='archive'>
    <a class='title' href='/wap{{archive.get_absolute_url}}'>{{archive.title}}</a>
    <div class='info'>{{archive.pub_date|naturalday}} {{archive.pub_date|date:"H:i"}}
    </div>
    <p>{{archive.content|striptags|slice:":50"}}...
    </p>
</div>
{% endfor %}
{% endblock %}
